package com.robot.mvvm.ui.work.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.model.PersonDataDTOBean
import com.robot.mvvm.R

class SafetyAdapter :
    BaseQuickAdapter<PersonDataDTOBean, BaseViewHolder>(R.layout.app_item_safety) {
    override fun convert(holder: BaseViewHolder, item: PersonDataDTOBean) {
        holder.setText(R.id.item_tv_name, item.personName)
            .setText(
                R.id.item_tv_type,
                "${context.getString(R.string.app_tips_76)}${item.certTypeStr}"
            )
            .setText(
                R.id.item_tv_time,
                "${context.getString(R.string.app_tips_77)}${item.gmtCertExpireStr}"
            )
    }
}